﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Comukrte
{
    public class CursoPersonal
    {
        public int CursoId { get; set; }

        [Required(ErrorMessage = "Selecciona un participante valido.")]
        [RegularExpression(@"^[0-9]+$", ErrorMessage = "Selecciona un participante valido.")]
        public int PersonalId { get; set; }

    }
    public partial class tblCursosPersonalEliminar
    {
        public int CursoId { get; set; }
        public tblPersonal Participante { get; set; }
    }
    public partial class tblCursosPersonalAgregar
    {
        public int CursoId { get; set; }
        public tblPersonal Personal { get; set; }
        public Boolean Agregar { get; set; }
    }
   
}